home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / programs_-_include / ASM-MIPS / BUGS.H < prev    next >
C/C++ Source or Header  |  1999-09-17  |  740b  |  44 lines

  1. /*
  2.  *  include/asm-mips/bugs.h
  3.  *
  4.  *  Copyright (C) 1995  Waldorf Electronics
  5.  *  Copyright (C) 1997  Ralf Baechle
  6.  *
  7.  * $Id: bugs.h,v 1.4 1998/05/01 01:35:47 ralf Exp $
  8.  */
  9. #include <asm/bootinfo.h>
  10.  
  11. /*
  12.  * This is included by init/main.c to check for architecture-dependent bugs.
  13.  *
  14.  * Needs:
  15.  *    void check_bugs(void);
  16.  */
  17.  
  18.  
  19. static inline void check_wait(void)
  20. {
  21.     printk("Checking for 'wait' instruction... ");
  22.     switch(mips_cputype) {
  23.     case CPU_R4200: 
  24.     case CPU_R4300: 
  25.     case CPU_R4600: 
  26.     case CPU_R4640: 
  27.     case CPU_R4650: 
  28.     case CPU_R4700: 
  29.     case CPU_R5000: 
  30.     case CPU_NEVADA:
  31.         wait_available = 1;
  32.         printk(" available.\n");
  33.         break;
  34.     default:
  35.         printk(" unavailable.\n");
  36.         break;
  37.     }
  38. }
  39.  
  40. static void check_bugs(void)
  41. {
  42.     check_wait();
  43. }
  44.